import { ApiProperty } from '@nestjs/swagger';
import { GetOrganizationAdminResDto } from '../../../../organization/dtos/organization/admin/get-organization-list.admin.res.dto';

export class LoginAdminResDto {
  @ApiProperty({ description: 'JWT Token' })
  readonly token: string;

  @ApiProperty({ description: 'token 有效期，单位：毫秒' })
  readonly expires_in: number;

  @ApiProperty({ description: '权限列表' })
  readonly guard_list: string[];

  @ApiProperty({ description: '默认岗位编号' })
  readonly job_id: number;

  @ApiProperty({ description: '用户组织列表', type: GetOrganizationAdminResDto, isArray: true })
  readonly organization_list: GetOrganizationAdminResDto[];
}
